package learn.d;

public class Teat {
    public static void live(Animal animal){
        animal.introduction();
        animal.live();
    }
    public static void main(String[] args) {
        Animal animal = new Animal("动物","哈哈");
//        animal.introduction();
//        animal.live();

        Tager tager = new Tager("老虎","黄色和黑色");

//        Lion lion = new Lion("狮子","黄色");
        Animal animal1 = new Lion("狮子","黄色");

        live(animal);
        live(tager);
//        live(lion);
        live(animal1);

    }
}
